CVE-2026-42496
Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory
Description
Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory. _make_special_file() passes the tar header's linkname to symlink() without validating it against absolute paths or .. segments. The secure-extract mode check that guards regular file extraction does not cover the symlink target. A subsequent open through the extracted name reads or writes the attacker chosen path.
INFO
Published Date :
May 26, 2026, 2:16 a.m.
Last Modified :
May 28, 2026, 2:16 p.m.
Remotely Exploit :
Yes !
Source :
9b29abf9-4ab0-4765-b253-1875cd9b441e
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | CRITICAL | [email protected] | ||||
| CVSS 3.1 | CRITICAL | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- Update Archive::Tar to version 3.08 or later.
- Validate all extracted symlink targets.
- Do not extract untrusted archives.
Public PoC/Exploit Available at Github
CVE-2026-42496 has a 5 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-42496.
| URL | Resource |
|---|---|
| https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch | Patch |
| https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes | Release Notes |
| https://www.cve.org/CVERecord?id=CVE-2026-42497 | Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-42496 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-42496
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Dockerfile Python
Cloud Security Hardening Project — Phases 0–13
Dockerfile Python HCL
A hardened, automated DevSecOps pipeline — containerized app with CI/CD, security scanning, and monitoring deployed on a self-hosted Linux server.
Dockerfile Python
None
Python Dockerfile
Contour art generator with a web UI. Tweak noise, colors and line styles, then export at any resolution.
Python HTML CSS Dockerfile Shell JavaScript
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-42496 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-42496 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
May. 28, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N -
Initial Analysis by [email protected]
May. 27, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N Added CPE Configuration OR *cpe:2.3:a:archive::tar_project:archive::tar:*:*:*:*:*:perl:*:* versions up to (excluding) 3.08 Added Reference Type CPANSec: https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch Types: Patch Added Reference Type CPANSec: https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes Types: Release Notes Added Reference Type CPANSec: https://www.cve.org/CVERecord?id=CVE-2026-42497 Types: Third Party Advisory -
New CVE Received by 9b29abf9-4ab0-4765-b253-1875cd9b441e
May. 26, 2026
Action Type Old Value New Value Added Description Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory. _make_special_file() passes the tar header's linkname to symlink() without validating it against absolute paths or .. segments. The secure-extract mode check that guards regular file extraction does not cover the symlink target. A subsequent open through the extracted name reads or writes the attacker chosen path. Added CWE CWE-59 Added Reference https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch Added Reference https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes Added Reference https://www.cve.org/CVERecord?id=CVE-2026-42497